using System;
using System.Collections.Generic;
using ObservadorPeplau.API.Business;

namespace ObservadorPeplau.API.Buffer
{
    internal class BufferEntry
    {
        public string DiscussionUrl { get; set; }
        public List<Comment> Comments { get; set; }
        public DateTime LastUpdate { get; set; }

        public BufferEntry(string url="", List<Comment> comments = null, DateTime? lastUpdate = null)
        {
            DiscussionUrl = url;
            Comments = comments;
            LastUpdate = lastUpdate.HasValue ? lastUpdate.Value : DateTime.Now;
        }
    }
}